<template>
    <div class="search-row">
        <div class="search-label">办件查询</div>
        <div class="input-row">
            <input placeholder="请输入快递单号/企业名称/手机号码/办理事项..." type="text">
            <div class="search-btn-row">
                <button class="reset-btn">重置</button>
                <button @click="onSearch" class="search-btn">
                    <img src="../../assets/search.png" alt="">
                </button>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    methods: {
        onSearch() {
            this.$emit("onSearch");
        }
    }
};
</script>

<style lang = "scss" scoped>
.search-label {
    height: 58px;
    width: 150px;
    background: #004293;
    color: #fff;
    margin-right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.input-row {
    flex: 1;
    display: flex;
    position: relative;
    input {
        flex: 1;
        font-size: 16px;
        padding-left: 20px;
        padding-right: 145px;
    }
    .search-btn-row {
        position: absolute;
        display: flex;
        align-items: center;
        right: 0;
    }
    .reset-btn {
        color: #c13530;
        padding: 20px;
        opacity: 0.8;
    }
    .search-btn {
        background: #822424;
        height: 57px;
        padding: 0 12px;
        &:active {
            opacity: 0.8;
        }
    }
}
</style>